import request from "@/utils/request"
import { recommendBannerResponseData, recommendResponse } from "./model/recommendModel"

enum Api {
    getRecommendBanner = "/m-revision/page/index/queryIndexTabContent",
    getRecommendList = "/revision/category/v2/albums?pageNum=1&pageSize=6&sort=1",
    getRecommendYouLike = "/revision/category/v2/albums?pageNum=1&pageSize=20&sort=2"
}

// 1、获取 推荐页  轮播图
export const getRecommendBannerApi = (moduleKey: string) => {
    return request.get<any, recommendBannerResponseData>(Api.getRecommendBanner, {
        params: {
            moduleKey
        }
    })
}

//2、 获取 推荐页 热门推荐
export const getRecommendListApi = () => {
    return request.get<any, recommendResponse>(Api.getRecommendList)
}


//3、 获取 推荐页 猜你喜欢
export const getRecommendYouLikeApi = () => {
    return request.get<any, recommendResponse>(Api.getRecommendYouLike)
}


